package com.aya.simple.push;

import java.util.Observer;

public class JavaMain {
    public static void main(String[] args) {
        WeatherSubject weatherSubject = new WeatherSubject();
        Observer temperatureObservable = new TemperatureObservable();
        Observer humidityObservable = new HumidityObservable();

        weatherSubject.addObserver(temperatureObservable);
        weatherSubject.addObserver(humidityObservable);

        WeatherDto weatherDto = new WeatherDto();
        weatherDto.setHumidity("10");
        weatherDto.setTemperature("20");

        weatherSubject.setData(weatherDto);



    }
}
